<section id="main" class="column">	
	<article class="module width_full">
		<header>
			<h3 class="tabs_involved">Daftar Toko</h3>
			<ul >
				<li><a href="<?php echo base_url("/admin/shop/list");?>">Daftar Toko</a></li>
				<li><a href="<?php echo base_url("/admin/shop/create");?>">Tambah</a></li>
			</ul>			
		</header>
		<div class="tab_container">			
			<div id="tab2" class="tab_content">
				<div class="module_content">
					<?php echo form_open('/admin/shop/create') ?>
						<fieldset>
							<label>Nama Toko</label>							
							<input type="text" name="shop_name" value="<?php if(isset($data)) echo $data['SHOP_NAME']; ?>" />
							<div class="clear"></div>
							<?php echo form_error('shop_name'); ?>
						</fieldset>
						<fieldset>
							<label>Web URL</label>							
							<input type="text" name="web_url" value="<?php if(isset($data)) echo $data['WEB_URL']; ?>" /><br/>
							<div class="clear"></div>
							<?php echo form_error('web_url'); ?>
						</fieldset>
						<fieldset>
							<label>Telepon</label>
							<input type="text" name="phone" value="<?php if(isset($data)) echo $data['PHONE']; ?>" />
							<div class="clear"></div>
							<?php echo form_error('phone'); ?>
						</fieldset>
						<fieldset>
							<label>HP</label>
							<input type="text" name="phone_mobile" value="<?php if(isset($data)) echo $data['PHONE_MOBILE']; ?>" />
							<div class="clear"></div>
							<?php echo form_error('phone_mobile'); ?>
						</fieldset>
						<fieldset>
							<label>Email</label>
							<input type="text" name="email" value="<?php if(isset($data)) echo $data['EMAIL']; ?>" />
							<div class="clear"></div>
							<?php echo form_error('email'); ?>
						</fieldset>
						<fieldset>
							<label>Nama Pemilik</label>
							<input type="text" name="contact_person" value="<?php if(isset($data)) echo $data['CONTACT_PERSON']; ?>" />
							<div class="clear"></div>
							<?php echo form_error('contact_person'); ?>
						</fieldset>
						<fieldset>
							<label>Username</label>
							<input type="text" name="acc_username" value="<?php if(isset($data)) echo $data['ACC_USERNAME']; ?>" />
							<div class="clear"></div>
							<?php echo form_error('acc_username'); ?>
						</fieldset>
						<fieldset>
							<label>Password</label>
							<input type="text" name="acc_password" value="<?php if(isset($data)) echo $data['ACC_PASSWORD']; ?>" />
							<div class="clear"></div>
							<?php echo form_error('acc_password'); ?>
						</fieldset>
						<fieldset>
							<label>Status </label>
							<input type="radio" name="acc_status" value="active" <?php if(isset($data)) {if($data['ACC_STATUS']=='active') echo 'checked'; }?> /> Active 
							<input type="radio" name="acc_status" value="inactive" <?php if(isset($data)) {if($data['ACC_STATUS']=='inactive') echo 'checked'; } ?> /> In Active
							<div class="clear"></div>
							<?php echo form_error('acc_status'); ?>
						</fieldset>
						<input type="reset" value="Reset">
						<input type="submit" value="Save">
						<input type="button" value="Cancel" onclick="window.location='<?php echo base_url('/admin/shop/list'); ?>'; return false;">
					</form>
				</div>
			</div>
		</div>
	</article>
</section>


